// 引组件
import { createApp } from 'vue'
import {BackTop ,NoticeBar ,AddressList,AddressEdit ,ContactCard ,Divider ,Watermark , Loading ,SubmitBar,Checkbox, CheckboxGroup, Card,SwipeCell ,Cell,IndexBar, Notify ,Toast ,ActionBar, ActionBarIcon, ActionBarButton,TextEllipsis ,Sticky ,Sidebar, SidebarItem ,Stepper ,NavBar,Icon,Button,Search,Tabbar,TabbarItem,Swipe,SwipeItem,Grid, GridItem,CountDown,List,Form, Field, CellGroup} from 'vant';

// 公共样式
import './style.css'
// vue2中给原型增加的属性
// Vue.Prototype.$http = URL_public
import URL_public from './servce/index.js';

// 路由
import router from "./router"

// vuex
import store from './store/store.js';

// vant库样式
import 'vant/lib/index.css';
// 引App
import App from './App.vue'



// 使用app
let app = createApp(App)

// vue3中 app.config.globalProperties 可以定义全局变量，供每个vue对象使用
app.config.globalProperties.$http = URL_public

// 安装router
app.use(router)

// 使用vuex
app.use(store)

let arr = [BackTop ,NoticeBar ,AddressList ,AddressEdit ,ContactCard ,Divider ,Watermark ,Loading ,SubmitBar,Checkbox, CheckboxGroup, Card,SwipeCell ,Cell,IndexBar, Notify,Toast ,ActionBar, ActionBarIcon, ActionBarButton,TextEllipsis,Sticky,Sidebar, SidebarItem ,Stepper ,NavBar,Icon,Button,Search,Tabbar,TabbarItem,Swipe,SwipeItem,Grid, GridItem,CountDown,List,Form, Field, CellGroup ]

arr.forEach(item => {
    app.use(item)
});


app.mount('#app')

